<?php 
session_cache_expire(999999999);
if(!isset($_SESSION)) 
	{ 
		session_start(); 
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<?php
$lang = $_SESSION['lang'];
if (empty($lang) || $lang == "EN") {
	include "../../value/value_en.php";
} else if($lang == "VN") {
	include "../../value/value_vn.php";
}
else {
	include "../../value/value_kr.php";
}
include '../../content-accountant/invoicetax.php';

if(isset($_REQUEST['type']) && isset($_REQUEST['value']) && isset($_REQUEST['vitri'])){
	$type=$_REQUEST['type'];
	$vitri=$_REQUEST['vitri'];
	$value=rawurldecode($_REQUEST['value']);
	//echo $value;
	if($type=="txtday"){
		$inobject= unserialize (serialize ($_SESSION['input_invoice'][$vitri]));
		$inobject->orday=$value;
		$_SESSION['input_invoice'][$vitri]=$inobject;
	}else if($type=="txtcusname"){
		$inobject= unserialize (serialize ($_SESSION['input_invoice'][$vitri]));
		$inobject->cusname=$value;
		$_SESSION['input_invoice'][$vitri]=$inobject;
	}else if($type=='txtitem'){
		$inobject= unserialize (serialize ($_SESSION['input_invoice'][$vitri]));
		$inobject->order_content=$value;
		$_SESSION['input_invoice'][$vitri]=$inobject;
	}else if($type=="txttimetran"){
		$inobject= unserialize (serialize ($_SESSION['input_invoice'][$vitri]));
		$inobject->order_time_transaction=$value;
		$_SESSION['input_invoice'][$vitri]=$inobject;
	}else if($type=="txttimepayment"){
		$inobject= unserialize (serialize ($_SESSION['input_invoice'][$vitri]));
		$inobject->order_time_payment=$value;
		$_SESSION['input_invoice'][$vitri]=$inobject;
	}else if($type=="txtmemo"){
		$inobject= unserialize (serialize ($_SESSION['input_invoice'][$vitri]));
		$inobject->order_memo=$value;
		$_SESSION['input_invoice'][$vitri]=$inobject;
	}
}

?>
<body>	
    	<input type="hidden" value="<?=count($_SESSION['input_invoice'])?>" id="soluongphantu" />
</body>
</html>
